package com.lnu.information;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 3:58 PM 2022/4/7
 * @modified By :
 */
public class Square extends Rect{

    public Square(double width) {
        super();
        this.width = width;
    }

    public Square() {
    }

    public double getGirth(){
        return width * 4;
    }
    public double getArea(){
        return width * width;
    }
}
